<template>
  <div>
    发现音乐
    <h1>点击li，此处使用编程式导航</h1>
    <ul>
      <li @click="song(1)">青藏高原</li>
      <li @click="song(2)">三天三夜</li>
    </ul>
  </div>
</template>

<script>
export default {
  data () {
    return {

    }
  },

  created () {

  },

  methods: {
    song (id) {
      this.$router.push('/song/' + id)
    }
  }
}
</script>

<style scoped lang='less'>

</style>
